<%--
  Created by IntelliJ IDEA.
  User: 97203
  Date: 2018/06/08
  Time: 15:05
  To change this ttasklate use File | Settings | File Ttasklates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/task.js"></script>
</head>
<body>
<table id="task_datagrid"></table>
<div id="tb">
    <div>
        姓名查询:<input name="keyword" class="easyui-textbox" prompt="请输入用户名">
        部门查询:<input name="deptId" class="easyui-combobox" prompt="请选择" fit="true"
               data-options="textField:'name',valueField:'id',panelHeight:'auto',
                                url:'/department/selectAll.do'">
        日期:<input id="beginTime" name="beginTime" class="easyui-datebox"  prompt="开始日期">~
        <input id="endTime" name="endTime" class="easyui-datebox"  prompt="结束日期">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query">查询</a>
    </div>

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增任务</a>
    <a id="edit_btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑任务</a>
    <shiro:hasPermission name="taskloyee:changeState">
        <a href="#" id="changeState_btn" class="easyui-linkbutton" data-options="iconCls:'icon-man',plain:true"
           data-cmd="changeState">标记完成</a>
    </shiro:hasPermission>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新任务</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:true" data-cmd="exportXls">导出</a>
    <%--<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" data-cmd="importXls">导入</a>--%>
    <div id="import_dialog">
        <form id="import_form" method="post" enctype="multipart/form-data" action="/taskloyee/importXls.do">
            <table>
                <tr>
                    <td><input type="file" name="file" id="file"></td>
                    <td><input type="button" value="导入" onclick="fileSubmit()"></td>
                </tr>
            </table>
        </form>
    </div>
</div>

<div id="task_dialog">
    <form id="task_form" method="post">
        <input id="taskId" name="id" type="hidden">
        <table align="center" style="margin: 15px;">
            <tr>
                <td>姓名：</td>
                <td><input type="text" name="employee.id" class="easyui-combobox"  prompt="请选择姓名"
                           data-options="textField:'username',valueField:'id',panelHeight:'auto',
                                url:'/employee/selectAll.do'"></td>
            </tr>
            <tr>
                <td>编号：</td>
                <td><input type="text" name="sn" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>时间：</td>
                <td><input type="text" name="date" class="easyui-datebox"></td>
            </tr>
            <tr>
                <td>部门：</td>
                <td><input type="text" name="dept.id" class="easyui-combobox" prompt="请选择部门"
                           data-options="textField:'name',valueField:'id',panelHeight:'auto',
                                url:'/department/selectAll.do'"></td>
            </tr>
            <tr>
                <td>内容：</td>
                <td><input type="text" name="content" class="easyui-textbox" validType="content"
                           data-options="height:120,width:195"></td>
            </tr>
            <div id="btn">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true"
                   data-cmd="save">保存</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
            </div>
        </table>
    </form>
</div>


</body>
</html>
